<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="./node_modules/vue/dist/vue.js"></script>


<body>
<div id="vue1" @click="clickMe('div')" style="border: green 1px solid;width: 100px;height: 100px;">

    <button @click.stop="clickMe('btn')" @contextmenu.prevent="rightClick('lalaala')">check</button>
</div>
<!--contextmenu鼠标右击事件-->
<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    new Vue({
        el:"#vue1",
        methods:{
            clickMe:function (val) {
                alert("hello," + val);
            },
            rightClick:function (val) {
                alert(val);
            }
        }
    });
</script>
</body>
</html>